package com.aigao.golf.common.config


/**
 * rabbitMq配置
 */
//@Configuration
class AmqpConfig{

//    @Bean(name = ["connectionFactory"])
//    fun connectionFactory(): ConnectionFactory{
//        var connectionFactory = CachingConnectionFactory()
//        connectionFactory.setAddresses("192.168.1.117")
//        connectionFactory.username = "qkjr"
//        connectionFactory.setPassword("qkjr_420")
//        connectionFactory.port = 5672
//        connectionFactory.isPublisherConfirms = true
//        return connectionFactory
//    }
//
//
//    @Bean
//    @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
//    fun rabbitTemplate(@Qualifier("connectionFactory")connectionFactory: ConnectionFactory) = RabbitTemplate(connectionFactory)




}
